home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_sea_sink.cog < prev    next >
Text File  |  1999-11-15  |  956b  |  51 lines

  1. # Jones 3D Cog Script
  2. #
  3. # sea_sink.cog
  4. #
  5. # [DS]
  6. #
  7. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  8. # ==============================================================================
  9.  
  10. symbols
  11.  
  12.     message        startup
  13.     message        activate    
  14.  
  15.        thing        sink
  16.     thing        player                        local
  17.     sound        waterrun=pyr_waterspout_loop.wav        local
  18.     int        running                        local
  19. end
  20.  
  21. # ==============================================================================
  22.  
  23. code
  24.  
  25. startup:
  26.  
  27.     player = GetLocalPlayerThing();
  28.     return;
  29.  
  30. activate:
  31.  
  32.     if ((Getsenderref() == sink) && (IsGhostVisible(player, sink, 30.0))) 
  33.     {
  34.         MakeMeStop();
  35.         DeselectWeaponWait(player);
  36.         StartCutscene(0);
  37.         PlayMode(player, 60, 0);
  38.         Sleep(0.5);
  39.         running = PlaySoundThing(waterrun, sink, 1, 10, 20, 1);
  40.         sleep(2.5);
  41.         PlayMode(player, 60, 0);
  42.         StopSound(running, 0.7);
  43.         sleep(1.0);    
  44.         EndCutscene();
  45.         ClearActorFlags(player, 0x200000);
  46.     }
  47.     return;
  48.  
  49. end
  50.  
  51.